﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniDatabases
{
    public delegate int CompareToDelegate(object a, object b);
    public interface IMiniDatabase
    {
        int Open();
        int Close();
        int Create(string tableName, params string[] columns);
        int Insert(string table, Dictionary<string, string> values);
        List<string[]> Select(string table, params string[] columns);
        int Update(string table, Dictionary<string, string> values, params int[] ids);
        int Delete(string table, params int[] ids);

    }
}
